
function requireNaive(path) {
    function recurSet(curKey, pck) {
        for (let key in pck) {
            pck[key]._requirePath = `${curKey}.${key}`;
            pck[key]._requireFn = path;
            recurSet(pck[key]._requirePath, pck[key]);
        }
    }

    let pck = require(path);
    recurSet(pck);
}

function loadRequirePiece(item){
    let pck = require(item.fn);
    for (let key of item.path.split(".")){
        pck=pck[key];
    }
    return pck;
}